package com.type.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class TypeSevenController {

	@RequestMapping("/typeSevenPreView.do")
	public String typeSevenPreView(@RequestParam(value="selectType", required=false) int selectType, Model model){
		String selType = "";
		switch (selectType){
		case 1:
			selType = "일반형(목록형)";
			break;
		case 2:
			selType = "전체이미지형";
			break;
		case 3:
			selType = "타입3";
			break;
		}
		model.addAttribute("selectType", selType);
		return "/type/typeSevenPreView";
	}
}
